using System;
using System.Collections.Generic;
using System.Diagnostics;
using wpffc.contracts.domaindata;
using wpffc.contracts.infrastructure;
using wpffc.flashcardbox.domaindata;

namespace wpffc.flashcardbox
{
    public class Open_box : FlashCardBoxEntity, IConfigurable
    {
        public void Configure(string[] args)
        {
            var box = new FlashCardBox(1, 2, new[]{0, 1});

            box.Compartments[1].Enqueue(new Card { Question = "Q1.1", Answer = "A1.1" });
            box.Compartments[1].Enqueue(new Card { Question = "Q1.2", Answer = "A1.2" });
            box.Compartments[1].Enqueue(new Card { Question = "Q1.3", Answer = "A1.3" });

            base.boxContainer.Value = box;

            this.Continue(box);
        }

        public event Action<IFlashCardBox> Continue;
    }
}